package model;

import java.text.SimpleDateFormat;

public class Gebot {
	private String _kaeufer;
	private int _id;
	private int _buchID;
	private float _gebot;
	private long _datum;
	
	public Gebot(int id, int buchID, float gebot, long datum, String kaeufer) {
		this._kaeufer = kaeufer;
		this._id = id;
		this._buchID = buchID;
		this._gebot = gebot;
		this._datum = datum;
	}
	
	public Gebot(int buchID, float gebot, long datum, String kaeufer) {
		this._kaeufer = kaeufer;
		this._buchID = buchID;
		this._gebot = gebot;
		this._datum = datum;
	}
	
	public String get_kaeufer() {
		return _kaeufer;
	}
	public void set_kaeufer(String _kaeufer) {
		this._kaeufer = _kaeufer;
	}
	public int get_id() {
		return _id;
	}
	public void set_id(int _id) {
		this._id = _id;
	}
	public int get_buchID() {
		return _buchID;
	}
	public void set_buchID(int _buchID) {
		this._buchID = _buchID;
	}
	public float get_gebot() {
		return _gebot;
	}
	public void set_gebot(float _gebot) {
		this._gebot = _gebot;
	}
	public long get_datum() {
		return _datum;
	}
	public void set_datum(long _datum) {
		this._datum = _datum;
	}
	public String get_formattedDate() {
		SimpleDateFormat formatter = new SimpleDateFormat("HH:mm 'Uhr' - dd.MM.yyyy");
		return formatter.format(_datum);
	}
}
